//
//  AboutUsViewController.m
//  ManageMoney
//
//  Created by epwk on 15/10/14.
//  Copyright © 2015年 db. All rights reserved.
//

#import "AboutUsViewController.h"

@interface AboutUsViewController ()

@end

@implementation AboutUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title = @"关于我们";
    
    [self requestAboutUsWithParams:nil];

}


#pragma mark - RequestAction 关于我们
-(void)requestAboutUsWithParams:(NSDictionary *)pramas
{
    [SVProgressHUD show];
    [[AFNetApiClient sharedClient] requestAboutUsWithParams:pramas success:^(AFHTTPRequestOperation *operation , id responseObject) {
        [SVProgressHUD dismiss];
        NSDictionary *dic = responseObject;
        if ([dic[@"responseCode"] intValue] == 200) {
            UILabel *lab = [[UILabel alloc] initWithFrame:CGRectMake(20, 10, ScreenWith - 20, 20)];
            lab.text = dic[@"responseObj"][@"content"];
            [self.view addSubview:lab];
            
        }else
        {
            [SVProgressHUD showErrorWithStatus:dic[@"responseMessage"]];
        }
    } failure:^(AFHTTPRequestOperation *operation , NSError *error) {
        NSLog(@"%@",error);
        [SVProgressHUD dismiss];
    }];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
